package oop8;

import oop6.pet2.Dog;
import oop6.pet2.Penguin;
import oop6.pet2.Pet;

import java.io.ObjectInputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest11 {
    public static void main(String[] args) {
        Pet d=new Dog("大黄",3,"公",100,100,"田园犬");
       // d.print();
        boolean b1=d instanceof Dog;
        System.out.println(b1);
        System.out.println(d instanceof Pet);
        System.out.println(d instanceof Object);
        System.out.println(d instanceof Penguin);
    }
}
